﻿@model ModelStateDictionary

@if(!Model.IsValid)
{
    <div class="alert alert-error">
        <ul>
            @foreach (var modelError in Model.SelectMany(keyValuePair => keyValuePair.Value.Errors))
            {
                <li>@modelError.ErrorMessage</li>
            }
        </ul>
    </div>
}
